CC = g++
CFLAGS = -Wall
PROG = basicshapes

SRCS = src/main.cpp

ifeq ($(shell uname),Darwin)
	LIBS = -framework OpenGL -framework GLUT
else
	LIBS = -lgdi32 -lopengl32 -lglu32 
endif

all: $(PROG)

$(PROG):	$(SRCS) bmp.o 
	$(CC) $(CFLAGS)  -o $(PROG) $(SRCS) bmp.o $(LIBS)
	
bmp.o: src/bmp.cpp src/bmp.h
	$(CC) $(CFLAGS) -o bmp.o -c src/bmp.cpp $(LIBS)

clean:
	rm -f $(PROG)
